home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98a.txt
/
000028_icon-group-sender _Mon Feb 2 08:27:36 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.7/8.8.7) with SMTP id IAA00448
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Mon, 2 Feb 1998 08:27:35 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA11176; Mon, 2 Feb 1998 08:27:35 -0700
To: icon-group@optima.CS.Arizona.EDU
Date: 1 Feb 1998 05:23:11 GMT
From: jeffery@cs.utsa.edu (Clinton Jeffery)
Message-Id: <6b10rv$76c@ringer.cs.utsa.edu>
Organization: The University of Texas at San Antonio
Sender: icon-group-request@optima.CS.Arizona.EDU
References: <6b0sd2$dad$1@gte2.gte.net>
Reply-To: jeffery@cs.utsa.edu
Subject: Re: Graphical Text with Lines
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 705
MJE (evans.nospam@gte.net) wrote:
: How can I find out the coordinates where particular characters in the string
: exist in the window, especially since the font is not monospaced but
: proportional?
The function TextWidth(s) (that's TextWidth(W, s) on window W) will give you
the pixel width of any particular string that you may write (or have written)
using the graphics facilities. To identify the pixel for a specific character
within a large string, you would get the pixel width of the string up to the
character you are interested in.
--
Clint Jeffery, jeffery@cs.utsa.edu
Division of Computer Science, The University of Texas at San Antonio
Research http://www.cs.utsa.edu/research/plss.html